<template>
    <div class="con">
        <ul>
            <li v-for="(item,index) in data" :key="index">
                <img :src="item.icon" alt>

                <span class="time">
                    {{item.repayText}}
                    <br>{{item.tradeTime}}
                </span>

                <p class="fr tip">
                    <b>{{item.amount}}</b>
                </p>
            </li>

        </ul>
    </div>
</template>

<script>
export default {
    name: "backplanlist",
    data() {
        return {
            timestamp: "",
            data:{}
        };
    },
    methods: {},
    mounted() {
        this.timestamp = Date.parse(new Date());
     
            this.axios({
                method: "post",
                url: `${
                    this.siteUrl
                }/app/repay/getOrderDetails?appid=web.2019&format=json&timestamp=${
                    this.timestamp
                }`,
                data: {
                    userId: localStorage.getItem("userId"),
                    repayOrderNo:JSON.parse(localStorage.getItem("backPlanDetail")).repayOrderNo,
               
                }
            })
                .then(response => {
                    if (response.data.success == 1) {
                       this.data=response.data.data.data;
                    } else {
                        this.$toast(response.data.message);
                       
                    }
                })
                .catch(error => {
                    console.log(error);
                    this.$toast("连接服务器异常");
                });
        }
    
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.con {
    width: 100%;
    min-height: 100vh;
    background: #F9F9F9;
    overflow: hidden;
}
.con ul {
    width: 100%;
    background: #fff;
    margin-top:12px
}
.con li {
    height: 82px;

    position: relative;
    border-bottom: 1px solid #ececec;
    width: 94%;
    margin-left: 3%;
}
.con li:last-child {
    border: none;
}
.con li span {
    color: #a6a9b5;
    font-weight: 200;
}
.con li .time {
    position: absolute;
    top: 24px;
    left: 65px;
}
.con li img {
    width: 22px;
    height: 22px;
    position: absolute;
    left: 24px;
    top: 30px;
}

.con li .tip {
    font-size: 20px;
    margin-top: 28px;
    text-align: right;
    margin-right: 10px;
}
</style>